// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
const apiPrefix = '/web';

/** Area basic information GET /v1/device/area/basic-info */
export async function realTimeMonitoringControllerAreaBasicInfo(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerAreaBasicInfoParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultAreaBasicInfoDTO>(`${apiPrefix}/v1/device/area/basic-info`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** Area overview GET /v1/device/area/overview */
export async function realTimeMonitoringControllerAreaOverview(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerAreaOverviewParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultListAreaOverViewDTO>(`${apiPrefix}/v1/device/area/overview`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** Area realtime data GET /v1/device/area/realtime */
export async function realTimeMonitoringControllerAreaRealtimeData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerAreaRealtimeDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultAreaRealtimeDTO>(`${apiPrefix}/v1/device/area/realtime`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** device basic information GET /v1/device/basic-info */
export async function realTimeMonitoringControllerDeviceBasicInfo(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerDeviceBasicInfoParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultDeviceManagerDTO>(`${apiPrefix}/v1/device/basic-info`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** Battery bms overview GET /v1/device/bms/overview */
export async function realTimeMonitoringControllerBmsOverview(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerBmsOverviewParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationBmsOverViewDTO>(`${apiPrefix}/v1/device/bms/overview`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** Bms realtime data GET /v1/device/bms/realtime */
export async function realTimeMonitoringControllerBmsRealtimeData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerBmsRealtimeDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultBmsRealtimeDTO>(`${apiPrefix}/v1/device/bms/realtime`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** Battery bmu overview GET /v1/device/bmu/overview */
export async function realTimeMonitoringControllerBmuOverview(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerBmuOverviewParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationBmuOverviewDTO>(`${apiPrefix}/v1/device/bmu/overview`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** Bmu realtime data GET /v1/device/bmu/realtime */
export async function realTimeMonitoringControllerBmuRealtimeData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerBmuRealtimeDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultBmuRealtimeDTO>(`${apiPrefix}/v1/device/bmu/realtime`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** Box overview basic information GET /v1/device/box-overview/basic-info */
export async function realTimeMonitoringControllerBoxOverviewBasicInfo(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerBoxOverviewBasicInfoParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultBoxOverviewBasicInfoDTO>(
    `${apiPrefix}/v1/device/box-overview/basic-info`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** Box overview realtime data GET /v1/device/box-overview/realtime */
export async function realTimeMonitoringControllerBoxOverviewRealtimeData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerBoxOverviewRealtimeDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultBoxOverviewRealtimeDTO>(
    `${apiPrefix}/v1/device/box-overview/realtime`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** Battery box overview GET /v1/device/box/overview */
export async function realTimeMonitoringControllerBoxOverview(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerBoxOverviewParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationBoxOverViewDTO>(`${apiPrefix}/v1/device/box/overview`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** Box realtime data GET /v1/device/box/realtime */
export async function realTimeMonitoringControllerBoxRealtimeData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerBoxRealtimeDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultBoxRealtimeDTO>(`${apiPrefix}/v1/device/box/realtime`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 充电桩概况 GET /v1/device/charge/overview */
export async function realTimeMonitoringControllerChargeOverview(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerChargeOverviewParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultChargePileDataDTO>(`${apiPrefix}/v1/device/charge/overview`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 充电桩实时数据 GET /v1/device/charge/realtime */
export async function realTimeMonitoringControllerChargeRealtimeData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerChargeRealtimeDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultChargeRealTimeData>(`${apiPrefix}/v1/device/charge/realtime`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** Battery cluster overview GET /v1/device/cluster/overview */
export async function realTimeMonitoringControllerClusterOverview(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerClusterOverviewParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationClusterOverviewDTO>(
    `${apiPrefix}/v1/device/cluster/overview`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** Cluster realtime data GET /v1/device/cluster/realtime */
export async function realTimeMonitoringControllerClusterRealtimeData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerClusterRealtimeDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultClusterRealtimeDTO>(`${apiPrefix}/v1/device/cluster/realtime`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 今日曲线 POST /v1/device/curve/today */
export async function realTimeMonitoringControllerTodayCurve(
  body: API.CurveQuery,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultDataCurveDTO>(`${apiPrefix}/v1/device/curve/today`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** Emmu overview GET /v1/device/emmu/overview */
export async function realTimeMonitoringControllerEmmuOverview(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerEmmuOverviewParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultEmmuVo>(`${apiPrefix}/v1/device/emmu/overview`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** Fault overview GET /v1/device/fault-overview */
export async function realTimeMonitoringControllerFaultOverview(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerFaultOverviewParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultListFaultOverviewDTO>(`${apiPrefix}/v1/device/fault-overview`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 储能柜总控制器概况 GET /v1/device/glc/overview */
export async function realTimeMonitoringControllerGlcOverview(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerGlcOverviewParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultGlcDataDTO>(`${apiPrefix}/v1/device/glc/overview`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 逆变器概况 GET /v1/device/inverter/overview */
export async function realTimeMonitoringControllerInverterOverview(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerInverterOverviewParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultInverterDataDTO>(`${apiPrefix}/v1/device/inverter/overview`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 逆变器实时数据 GET /v1/device/inverter/realtime */
export async function realTimeMonitoringControllerInverterRealtimeData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerInverterRealtimeDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultInverterRealTimeData>(`${apiPrefix}/v1/device/inverter/realtime`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 储能柜控制器概况 GET /v1/device/lc/overview */
export async function realTimeMonitoringControllerLcOverview(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerLcOverviewParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultLcDataDTO>(`${apiPrefix}/v1/device/lc/overview`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 储能柜控制器实时数据 GET /v1/device/lc/realtime */
export async function realTimeMonitoringControllerLcRealtimeData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerLcRealtimeDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultLcRealTimeData>(`${apiPrefix}/v1/device/lc/realtime`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 电表概况 GET /v1/device/meter/overview */
export async function realTimeMonitoringControllerMeterOverview(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerMeterOverviewParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultMeterDataDTO>(`${apiPrefix}/v1/device/meter/overview`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 电表实时数据 GET /v1/device/meter/realtime */
export async function realTimeMonitoringControllerMeterRealtimeData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerMeterRealtimeDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultMeterRealTimeData>(`${apiPrefix}/v1/device/meter/realtime`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** Offline overview GET /v1/device/offline-overview */
export async function realTimeMonitoringControllerOfflineOverview(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerOfflineOverviewParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationOfflineOverviewDTO>(
    `${apiPrefix}/v1/device/offline-overview`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** PCS概况 GET /v1/device/pcs/overview */
export async function realTimeMonitoringControllerPcsOverview(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerPcsOverviewParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPcsDataDTO>(`${apiPrefix}/v1/device/pcs/overview`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** PCS实时数据 GET /v1/device/pcs/realtime */
export async function realTimeMonitoringControllerPcsRealtimeData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerPcsRealtimeDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPcsRealTimeData>(`${apiPrefix}/v1/device/pcs/realtime`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** PCS控制器概况 GET /v1/device/pcsctl/overview */
export async function realTimeMonitoringControllerPcsctlOverview(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerPcsctlOverviewParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPcsctlDataDTO>(`${apiPrefix}/v1/device/pcsctl/overview`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** PCS控制器实时数据 GET /v1/device/pcsctl/realtime */
export async function realTimeMonitoringControllerPcsctlRealtimeData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerPcsctlRealtimeDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPcsctlRealTimeData>(`${apiPrefix}/v1/device/pcsctl/realtime`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** Station monitoring data refresh cycle GET /v1/device/refresh-cycle */
export async function realTimeMonitoringControllerRefreshCycle(options?: { [key: string]: any }) {
  return request<API.ApiResultLong>(`${apiPrefix}/v1/device/refresh-cycle`, {
    method: 'GET',
    ...(options || {}),
  });
}

/** Station monitoring data refresh cycle setting PUT /v1/device/refresh-cycle/setting */
export async function realTimeMonitoringControllerRefreshCycleSetting(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerRefreshCycleSettingParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultBoolean>(`${apiPrefix}/v1/device/refresh-cycle/setting`, {
    method: 'PUT',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** Station basic information GET /v1/device/station/basic-info */
export async function realTimeMonitoringControllerStationBasicInfo(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerStationBasicInfoParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultStationBasicInfoDTO>(`${apiPrefix}/v1/device/station/basic-info`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** Station realtime data GET /v1/device/station/realtime */
export async function realTimeMonitoringControllerStationRealtimeData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerStationRealtimeDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultStationRealtimeDTO>(`${apiPrefix}/v1/device/station/realtime`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 变压器概况 GET /v1/device/transformer/overview */
export async function realTimeMonitoringControllerTransformerOverview(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerTransformerOverviewParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultTransformerDataDTO>(`${apiPrefix}/v1/device/transformer/overview`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 变压器实时数据 GET /v1/device/transformer/realtime */
export async function realTimeMonitoringControllerTransformerRealtimeData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerTransformerRealtimeDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultTransRealTimeData>(`${apiPrefix}/v1/device/transformer/realtime`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** Retrieve all device types at a certain level GET /v1/device/types */
export async function realTimeMonitoringControllerDeviceTypes(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerDeviceTypesParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultListDeviceTypeDTO>(`${apiPrefix}/v1/device/types`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** Battery unit overview GET /v1/device/unit/overview */
export async function realTimeMonitoringControllerUnitOverview(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.realTimeMonitoringControllerUnitOverviewParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultListUnitOverViewDTO>(`${apiPrefix}/v1/device/unit/overview`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
